$(function(){
	$('.form').validate({
    	rules: {
            name: {
                required: true,
                remote:'../NoticeTypeServlet?op_type=validate&kind=name'
            },
            no:{
            	required:true,
            	remote:'../NoticeTypeServlet?op_type=validate&kind=no'
            }
            
        
        },
        messages: {
            name: {
                  required: '公告类型名不能为空',
                remote:'该公告类型已存在'
            },
            no:{
            	required:'公告类型编码不能为空',
            	remote:'该公告类型编码已存在'
            }
        }
    
    });
    });